1
general::
A deserved punishment or reward, as in He got his just deserts when Mary jilted him. This idiom employs desert in the sense of "what one deserves," a usage dating from the 1300s but obsolete except in this expression.
American Heritage Idioms